package org.bud.rung.bit.cron;

import java.time.LocalDateTime;
import java.util.function.Supplier;

/**
 * @author shaun
 * @date 2024/8/11
 * @instruction
 */
public class CronSecond extends CronTimeBase {
    @Override
    protected void initialNext() {
        this.next = last.getSecond();
    }

    @Override
    protected LocalDateTime with() {
        return last.withSecond(this.next);
    }

    @Override
    public boolean checkNext() {
        return this.next >= 60;
    }
}
